import request from '@/utils/request'

// 查询财务结算列表
export function listStatement(query) {
  return request({
    url: '/system/statement/list',
    method: 'get',
    params: query
  })
}

// 查询财务结算详细
export function getStatement(financialStatementId) {
  return request({
    url: '/system/statement/' + financialStatementId,
    method: 'get'
  })
}

// 新增财务结算
export function addStatement(data) {
  return request({
    url: '/system/statement',
    method: 'post',
    data: data
  })
}

// 修改财务结算
export function updateStatement(data) {
  return request({
    url: '/system/statement',
    method: 'put',
    data: data
  })
}

// 删除财务结算
export function delStatement(financialStatementId) {
  return request({
    url: '/system/statement/' + financialStatementId,
    method: 'delete'
  })
}

// 导出财务结算
export function exportStatement(query) {
  return request({
    url: '/system/statement/export',
    method: 'get',
    params: query
  })
}